package com.dxx.cloud.admin.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author dh
 * @since 2025-06-06
 */
@Getter
@Setter
@TableName("goods")
public class GoodsEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商户id
     */
    private Long merId;

    /**
     * 门店id
     */
    private Long shopId;

    /**
     * 类型id
     */
    private Long typeId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 图片地址
     */
    private String icon;

    /**
     * 序号
     */
    private Integer orderNo;

    @Schema(description="商品级别",example="1")
    private Integer level;

    @Schema(description="父级id",example="1")
    private Long parentId;

    @Schema(description=" ancestors",example="1,2")
    private String ancestors;

    @Schema(description="备注",example="1")
    private String remark;

    @Schema(description="单价",example="1")
    private BigDecimal unitPrice;

    @Schema(description="商品图文",example="1")
    private String goodsHtmlContent;

}
